package cate.game.role.res.treasureturntable;

import cate.game.GameBody;
import cate.game.res.MixRes;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass("转盘格子")
public class TreasureTurnTableItem {
    @NoteField("位置")
    public byte pos;
    @NoteField("奖励")
    public MixRes reward;
    @NoteField("是否被抽中")
    public boolean hasDraw;
    @NoteField("奖励tid")
    public int tid;

    public TreasureTurnTableItem() {

    }

    public TreasureTurnTableItem(byte pos, MixRes reward, int tid) {
        this.pos = pos;
        this.reward = reward;
        this.tid = tid;
    }

    public boolean isUnique(GameBody game) {
        return game.table.treasureTurntable.group.get(tid).isUnique;
    }
}
